import Vue from 'vue'
import {
    Button,
    Message,
    MessageBox,
    Popover,
    Drawer,
    Input,
    Form,
    FormItem,
    Select,
    Option,
    Dialog,
    Table,
    TableColumn,
    Avatar,
    Tooltip,
    Collapse,
    CollapseItem,
    ColorPicker,
    InputNumber,
    RadioGroup,
    Radio,
    Tabs,
    TabPane, Icon, Row, Col, DatePicker, Checkbox, CheckboxGroup, Upload
} from 'element-ui';
Vue.use(Button)
Vue.use(RadioGroup)
Vue.use(Radio)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Icon)
Vue.use(Popover)
Vue.use(Drawer)
Vue.use(Input)
Vue.use(InputNumber)
Vue.use(Form)
Vue.use(Select)
Vue.use(FormItem)
Vue.use(Option)
Vue.use(Dialog)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Avatar)
Vue.use(Tooltip)
Vue.use(Collapse)
Vue.use(DatePicker)
Vue.use(CheckboxGroup)
Vue.use(Checkbox)
Vue.use(CollapseItem)
Vue.use(ColorPicker)
Vue.use(Row)
Vue.use(Col)
Vue.use(Upload)
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$message = Message;
Vue.prototype.$alert = MessageBox.alert;

import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';
Vue.component(CollapseTransition.name, CollapseTransition)
import config from '@/config'
Vue.prototype.$config = config
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import router from './router'
import store from './store'
import Util from './utils';
Vue.prototype.$util = Util;

/**
 * 初始化Web基本参数
 */
import {init} from "./config/init";
init()

let vue = new Vue({
  el: '#app',
	router,
	store,
  render: h => h(App)
})

export default vue
